"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
;
var AngelaBaby = /** @class */ (function () {
    function AngelaBaby() {
        this.available = false;
    }
    AngelaBaby.prototype.answerPhone = function () {
        console.log('hello!I am AngelaBaby');
    };
    return AngelaBaby;
}());
;
var AngelaBabyAgent = /** @class */ (function () {
    function AngelaBabyAgent() {
        this.angelaBaby = new AngelaBaby();
    }
    AngelaBabyAgent.prototype.answerPhone = function () {
        if (this.angelaBaby.available) {
            this.angelaBaby.answerPhone();
        }
        else {
            console.log('hello!I am AngelaBabyAgent');
        }
    };
    return AngelaBabyAgent;
}());
;
var angelaBabyAgent = new AngelaBabyAgent();
angelaBabyAgent.answerPhone();
